import java.util.Set;
import java.util.HashSet;
/**
*
*/
public class Stus implements Comparable<Stus>{

  public String id;

  public String name;

  public Set<Course> course;

  public Stus(String id,String name){
    this.id = id;
    this.name = name;
    this.course = new HashSet<Course>();
  }

@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((name == null) ? 0 : name.hashCode());
	return result;
}

@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (!(obj instanceof Stus))
		return false;
	Stus other = (Stus) obj;
	if (name == null) {
		if (other.name != null)
			return false;
	} else if (!name.equals(other.name))
		return false;
	return true;
}

@Override
public int compareTo(Stus o) {
	
	return this.id.compareTo(o.id);
}
 

  
}
